/**
*		@file ConstTable.cpp
*		@brief ConstTable class
*
*		@author Lan Ziquan
*
*		@date 1/25/2012
*/
#include "ConstTable.h"

set<int> ConstTable::si_constants_;

vector<int> ConstTable::GetConstList()
{
	vector<int> v_int_result;
	set<int>::iterator iter_int;
	for( iter_int = si_constants_.begin();
		iter_int != si_constants_.end();
		iter_int++ )
	{
		v_int_result.push_back(*iter_int);
	}
	return v_int_result;
}

void ConstTable::InsertConst(int constant)
{
	si_constants_.insert(constant);
	return;
}

bool ConstTable::HasConst(int constant)
{
	return si_constants_.find(constant) != si_constants_.end();
}
